﻿import com.gamemeal.mvc.*;
import com.gamemeal.mvc.datatype.*;

/**
 * @author colin
 */
class Controller extends AbstractController implements IController{
	public function Controller(view:IView){//constructor
		super(view);
	}
	
	public function action(){
		var v1 = Number(getValue(Model.instance().dataField));
		trace(v1);
		setValue(Model.instance().dataField,v1+100);
		//if(error)throw new Error();
		updateModel();
		//model.flush();
	}
}